<%@page isErrorPage="true"%>
<%@page import="java.io.PrintWriter"%><html>
<%
    ErrorData data = pageContext.getErrorData();
    int status = data.getStatusCode();
    String uri = data.getRequestURI();
    String message = exception.getMessage();
    String type = exception.getClass().getSimpleName();
    response.setStatus(status);
%>
<head>
<title>UNIT Error!</title>
</head>
<h1>UNIT Error Type: <%=type%>!</h1>
<ul>
    <li>Error Message: <pre><%=message%></pre></li>
    <li>Request URI: <%=uri%></li>
    <li>Status Code: <%=status%></li>
</ul>
<%
     exception.printStackTrace();
%>
</html>
